#include "PlayerTrunInfo.h"
#include "../framework/GameActivity.h"
#include "../framework/Player.h"
#include <QPainter>
#include <iostream>

void PlayerTrunInfo::update(GameActivity* game){
    Player* player;
    if((player = game->getPlayer(getSide()))!=NULL){
        if(player->getIsMyTurn()){   
            this->setVisible(true);
            return;
        }
    }
    this->setVisible(false);
}
